package com.ostrich.cloud.ostrichGoodsService.service;

import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichGoodsSercice.model.Dto.SalesDto;
import com.ostrich.cloud.ostrichGoodsService.infra.model.Sales;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.ostrichGoodsService.service.param.CreateSalesParam;
import com.ostrich.cloud.ostrichGoodsService.service.param.SelectSalesParam;

/**
 * <p>
 * 销售量 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface SalesService extends IService<Sales> {

    boolean createSales(CreateSalesParam createSalesParam);

    boolean updateSales(Long orderNo);


    PageResult<SalesDto> getAllSalesDto(Integer current,Integer size);

    PageResult<SalesDto> selectSalesCondition(SelectSalesParam selectSalesParam);
}
